#ifndef SERVER_H
#define SERVER_H

#include "server_global.h"
#include "server-socket.h"
#include <QTimer>

class SERVER_EXPORT Server: public QThread
{
    Q_OBJECT
private:
    ServerSocketProcPtr _server;
    uv_loop_t *_loop;
    QTimer* _loopTimer;
public:
    Server();
    ~Server();
    void close();
protected:
    virtual void run() override;
};

#endif // SERVER_H
